package cn.wolfcode.wolf2world.service;

import cn.wolfcode.wolf2world.domain.StrategyCatalog;
import cn.wolfcode.wolf2world.query.QueryObject;
import cn.wolfcode.wolf2world.vo.CatalogVO;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author 杨兴健
 * @Date 2020/8/9 20:06
 */
public interface StrategyCatalogService {
    void save(StrategyCatalog strategyCatalog);
    void update(StrategyCatalog strategyCatalog);
    void delete(String id);
    StrategyCatalog get(String id);
    List<StrategyCatalog> list();

    Page<StrategyCatalog> query(QueryObject qo);


    /**
     * 添加或更新
     * @param strategyCatalog
     */
    void saveOrUpdate(StrategyCatalog strategyCatalog);

    /**
     * 查询攻略分类列表
     * @return
     */
    List<CatalogVO> queryCatalogVO();

    /**
     * 查询攻略分类
     * @param destId
     * @return
     */
    List<StrategyCatalog> queryCatalogByDeatId(String destId);
}
